/********************************************************************
Name: Table A17: Effect of Dem Sheriff on Stated Policy
Author: Dan Thompson
Date: August 2019
Notes:
********************************************************************/

* Set the working directory 
gl root = "$sanctuary_root"
gl root = "YOUR_WORKING_DIRECTORY"

* Bring in the RD analysis data
use "$root/data/rd analysis data.dta", clear

* Column 1
reg no_287g treat rv rv2 rv3 treat_rv treat_rv2 treat_rv3 ///
	if abs(rv)<25, vce(clust election_id)
reg no_287g treat rv rv2 rv3 treat_rv treat_rv2 treat_rv3 ///
	if abs(rv)<25 & large==1, vce(clust election_id)

* Column 2
reg no_detention_contract treat rv rv2 rv3 treat_rv treat_rv2 treat_rv3 ///
	if abs(rv)<25, vce(clust election_id)
reg no_detention_contract treat rv rv2 rv3 treat_rv treat_rv2 treat_rv3 ///
	if abs(rv)<25 & large==1, vce(clust election_id)

* Column 3
reg no_ice_alerts treat rv rv2 rv3 treat_rv treat_rv2 treat_rv3 ///
	if abs(rv)<25, vce(clust election_id)
reg no_ice_alerts treat rv rv2 rv3 treat_rv treat_rv2 treat_rv3 ///
	if abs(rv)<25 & large==1, vce(clust election_id)

* Column 4
reg ice_interrogation_limits treat rv rv2 rv3 treat_rv treat_rv2 treat_rv3 ///
	if abs(rv)<25, vce(clust election_id)
reg ice_interrogation_limits treat rv rv2 rv3 treat_rv treat_rv2 treat_rv3 ///
	if abs(rv)<25 & large==1, vce(clust election_id)
